// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

const state = {
  theme: '#409EFF',
  fixedHeader:true,
  tagsView:true,
  sidebarLogo:true,
  sideTheme:"#304156",
  asdTextColor:'#ffd04b',
  hoverBg:'rgb(38,52,69)',
  isKeep:false,
  app_count:0,
  act_count:0
}

const mutations = {
  CHANGE_SETTING: (state, { key, value }) => {
      if (state.hasOwnProperty(key)) {
        state[key] = value
      }
    },
}

const actions = {
  changeSetting({ commit }, data) {
      commit('CHANGE_SETTING', data)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
